package com.songlanyun.modules.thirdcallbacklog.controller;

import java.util.Arrays;
import java.util.Map;

//import org.apache.shiro.authz.annotation.RequiresPermissions;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.common.utils.R;
import com.songlanyun.modules.thirdcallbacklog.entity.ThirdCallBackLogEntity;
import com.songlanyun.modules.thirdcallbacklog.service.ThirdCallBackLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 第三方回调日志
 *
 * @author WuChao
 * @email songlanyun@gmail.com
 * @date 2023-03-03 11:24:52
 */
@RestController
@RequestMapping("admin/third/call/back/log")
public class ThirdCallBackLogController {
    @Autowired
    private ThirdCallBackLogService thirdCallBackLogService;

    /**
     * 列表
     */
    @GetMapping("/list")
    public R list(@RequestParam Map<String, Object> params){
        PageUtils page = thirdCallBackLogService.queryPage(params);

        return R.ok().put("page", page);
    }

    /**
     * 信息
     */
    @GetMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
		ThirdCallBackLogEntity thirdCallBackLog = thirdCallBackLogService.getById(id);
        return R.ok().put("data", thirdCallBackLog);
    }

}
